package net.handler
{

	import globals.Global;

	import net.message.BaseMessage;
	import net.message.CG_Loading_HeroMessage;
	import net.message.GC_Loading_HeroMessage;

	public class GC_Loading_HeroHandler implements IMessageHandler
	{

		public function GC_Loading_HeroHandler()
		{
		}

		public function execute(message:BaseMessage):void
		{
			var msg:GC_Loading_HeroMessage = message as GC_Loading_HeroMessage;

			if(CG_Loading_HeroMessage.listType == CG_Loading_HeroMessage.WORRIOR_UI)
			{
				Global.uiManager.warriorPanel.update(msg.dataProvider);
			}
			else if(CG_Loading_HeroMessage.listType == CG_Loading_HeroMessage.EQUIP_UI)
			{
				Global.uiManager.equipPanel.heroListData(msg.dataProvider);
			}
		}
	}
}